package com.bjsxt;

/**
 * 	审批人
 * 
 * @author melo
 *
 */
public abstract class Leader {

	protected String name;

	protected Leader nextLeader;

	public Leader(String name) {
		super();
		this.name = name;
	}

	/**
	 * 	设定责任链上的后续对象
	 * 
	 * @param nextLeader 下一任领导
	 */
	public void setNextLeader(Leader nextLeader) {
		this.nextLeader = nextLeader;
	}

	/**
	 * 	处理请假的核心方法
	 * 
	 * @param leaveRequest 请假条
	 */
	public abstract void handleRequest(LeaveRequest leaveRequest);

}
